package com.sh.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sh.dao.StoneDao;
import com.sh.entity.Stone;
import com.sh.entity.User;
import com.sh.service.StoneService;
import com.sh.util.ConstantUtil;

@Service()
public class StoneServiceImpl implements StoneService{
	@Autowired
	private StoneDao stoneDao;

	//查询
	@Override
	public List<Stone> listStone(Map<String, Object> conMap,User user,String sysTime) {
		// TODO Auto-generated method stub
		return stoneDao.listStone(conMap);

	}

	// 保存 上传的 文件数据 到 DB
	@Override
	public String saveUploadStone(List<Stone> stoneList, User user, String sysTime) {
		// TODO Auto-generated method stub 
		int results = stoneDao.saveUploadStone(stoneList,sysTime);


		return ConstantUtil.SUCCESS;
	}
}
